﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;

namespace testing_thing
{
    public class Item : GameEntity
    {
        private Inventory _inv;

        public Item(string[] ids, bool isContainer)
            : base(ids, isContainer)
        {
            if (isContainer)
            {
                _inv = new Inventory();
            }
        }

        private bool isStationary;

        public bool IsStationary
        {
            get { return isStationary; }
            set { isStationary = value; }
        }

        public bool hasInventory
        {
            get { return _inv != null; }
        }
    }

    [TestFixture]
    public class ItemTest
    {
        [Test]
        public void TestBasicFeatures()
        {
            Item bag = new Item(new string[] { "Bag" }, true);
            Item pen = new Item(new string[] { "Pen" }, false);

            Assert.IsTrue(bag.hasInventory);
            Assert.IsFalse(pen.hasInventory);
        }
    }
}
